#include('header.html')
<script type="text/javascript">
  changeTab('分值设置');
</script>

<div class="setting-xcontent">
  <div>
    <div class="col-lg-12 col-xs-12">
      <h4><span class="fa fa-hand-o-right"></span> 分值设置</h4>
    </div>
    <div style="min-width: 300px;" class="col-lg-2 col-md-3 col-sm-6">
      <div class="panel panel-info bd-color-x">
        <div class="panel-heading bg-color-x">
          <span class="">修改信息</span>
        </div>
        <div class="panel-body">
          <form id="score" class="form-horizontal">
            <div class="form-group">
              <label class="text-left col-sm-3 control-label">优秀</label>
              <div class="col-sm-9">
                <input type="number" name="four" max="100" class="form-control" value="${four}" placeholder="对应分值" >
              </div>
            </div>
            <div class="form-group">
              <label class="text-left col-sm-3 control-label">良好</label>
              <div class="col-sm-9">
                <input type="number" name="three" max="100" class="form-control" value="${three}" placeholder="对应分值" >
              </div>
            </div>
            <div class="form-group">
              <label class="text-left col-sm-3 control-label">及格</label>
              <div class="col-sm-9">
                <input type="number" name="twe" max="100" class="form-control" value="${twe}" placeholder="对应分值" >
              </div>
            </div>
            <div class="form-group">
              <label class="text-left col-sm-3 control-label">差评</label>
              <div class="col-sm-9">
                <input type="number" name="one" max="100" class="form-control" value="${one}" placeholder="对应分值">
              </div>
            </div>
            <input type="submit" value="保存" class="btn btn-success btn-group-justified">
          </form>
        </div>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript">

  $('#score').submit(function (e) {
    e.preventDefault();
    var fd = $(e.target).serialize();
    $.post('/stageCount/update/standard', fd, function (data) {
      if (data.success) {
        alert("保存成功！")
      } else {
        alert("保存失败！")
      }
    })
  })

</script>
#include('footer.html')
